package core.manager
{
	public class MainManager
	{
        private static var instance:MainManager;
        public var stage:Object;
		public function MainManager()
		{
            if (instance == null)
            {
                instance = this;
            }
            else
            {
                throw new Error("ScriptManager不能被实例化");
            }
		}
        public static function getInstance() : MainManager
        {
            if (instance == null)
            {
                return new MainManager;
            }
            return instance;
        }// end function
	}
}